import request from '@/utils/http/Request'
import Url from "@/consts/Url";
import {RESPONSE_ERROR_CODE} from "@/consts/Codes";
import {ElMessage} from "element-plus";


async function list(params) {
    try {
        const response = await request.post(Url.TABLE.LIST.value, params);
        return response;
    } catch (e) {
        console.error("request table list fail" + e);
        throw e;
    }
}

async function count(params){
    try {
        const response = await request.post(Url.TABLE.COUNT.value, params);
        return response;
    }catch (e) {
        console.error("request table count fail" + e);
        throw e;
    }
}

export default {
    list,count
}